﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BeatingMole
{
    /// <summary>
    /// Nguyễn Đặng Anh Duy
    /// MSSV : 11100204
    /// Email : itc.anhduy@gmail.com
    /// </summary>
    class CGuiWeapons
    {
        #region "Variable"
        CBusWeapons BusWeapons;
        ContentManager _Content;
        bool IsEnable;
        #endregion

        #region "Variable"
        public bool IsEnableGui
        {
            set { IsEnable = value; }
            get { return IsEnable; }
        }
        #endregion

        #region "Constructor"
        public CGuiWeapons(ContentManager content)
        {
            _Content = content;
            BusWeapons = new CBusWeapons(_Content);
        }
        #endregion

        #region "Method"
        public void UpdateWeapon(GameTime gameTime)
        {
            if (IsEnable == true)
            {
                BusWeapons.UpdateWeapons(gameTime);
            }
        }

        public void DrawWeapon(SpriteBatch  spriteBatch)
        {
            if (IsEnable == true)
            {
                BusWeapons.DrawWeapons(spriteBatch);
            }
        }
        #endregion
    }
}
